/*
 * @Author: Joel
 * @Date: 2025-04-10 09:37:25
 * @LastEditors: Joel
 * @LastEditTime: 2025-04-10 10:07:18
 * @FilePath: /gd32f303cct6/usr/board_driver/pump.h
 * @Description: 
 * Copyright (C) 2025 YiJiaLink, All Rights Reserved. 
 * 2025-04-10 09:37:25
 */
#ifndef __PUMP_H
#define __PUMP_H
 
 /* 包含头文件代码 */
 
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>

#include "gd32f30x.h"

 #if defined(__cplusplus)
 extern "C" {
 #endif /*_cplusplus*/


 /*PUMP 硬件连接 */
 #define PUMP_GPIO_CLK                    RCU_GPIOA
 #define PUMP_GPIO_PORT                   GPIOA
 #define PUMP_PIN                         GPIO_PIN_8

/* 功能打包 */
struct pump_func
{
    /* data */
    void (*init_pump)(void);
    void (*run_pump)(uint32_t duty);
    void (*stop_pump)(void);
};
struct pump_func *pump_driver_init(void);


#if defined(__cplusplus)
}
#endif /*_cplusplus*/

#endif
/* el psy congroo */